package AlarmIRPConstDefs;


/**
 * Generated from IDL struct "ThresholdLevelInd".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class ThresholdLevelIndHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(AlarmIRPConstDefs.ThresholdLevelIndHelper.id(),"ThresholdLevelInd",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("indication", AlarmIRPConstDefs.ThresholdIndicationHelper.type(), null),new org.omg.CORBA.StructMember("low", AlarmIRPConstDefs.FloatOptHelper.type(), null),new org.omg.CORBA.StructMember("high", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(6)), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final AlarmIRPConstDefs.ThresholdLevelInd s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static AlarmIRPConstDefs.ThresholdLevelInd extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:AlarmIRPConstDefs/ThresholdLevelInd:1.0";
	}
	public static AlarmIRPConstDefs.ThresholdLevelInd read (final org.omg.CORBA.portable.InputStream in)
	{
		AlarmIRPConstDefs.ThresholdLevelInd result = new AlarmIRPConstDefs.ThresholdLevelInd();
		result.indication=AlarmIRPConstDefs.ThresholdIndicationHelper.read(in);
		result.low=AlarmIRPConstDefs.FloatOptHelper.read(in);
		result.high=in.read_float();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final AlarmIRPConstDefs.ThresholdLevelInd s)
	{
		AlarmIRPConstDefs.ThresholdIndicationHelper.write(out,s.indication);
		AlarmIRPConstDefs.FloatOptHelper.write(out,s.low);
		out.write_float(s.high);
	}
}
